package com.qf.service;

import com.qf.dao.StudentDao;
import com.qf.dao.StudentDaoImpl;
import com.qf.pojo.Student;

import java.util.List;

/**
 * @author 千锋健哥
 */
public class StudentServiceImpl implements StudentService {

    private StudentDao studentDao = new StudentDaoImpl();

    @Override
    public void add(Student student) {
        studentDao.insert(student);
    }

    @Override
    public void update(Student student) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public List<Student> findStudentAll() {
        List<Student> list = studentDao.findAll();
        return list;
    }

}
